/*
 * @Description: 数据库接口
 * @Author: qingyang
 * @Date: 2022-02-18 16:48:04
 * @LastEditors: chenju
 * @LastEditTime: 2022-07-21 11:10:32
 */
import { get } from '@/utils/http';
import { IFactorListParams, RelationFactorListResult } from './model/factorListModel';
import { BasicPagingListResult } from '@/apis/basicModel';
// 因子库
const factor = {
  // 因子库列表分页查询
  factorList: (params: IFactorListParams) => get(`footprint/factor/getPageFactor`, params),
  // 关联因子查询
  relationFactorList: (
    params: IFactorListParams
  ): Promise<BasicPagingListResult<RelationFactorListResult>> =>
    get(`footprint/factor/getRelationFactor`, params)
};

export default {
  ...factor
};
